#include "barriar.h"
#include <QPaintEvent>
#include <QPainter>
#include <QTime>
Barriar::Barriar()
{

    QTime m_time=QTime::currentTime();
    qsrand(m_time.msec()+m_time.second()*1000);
    for(int i=0;i<10;i++)
    {
     m_barrir[i]=QRectF(qrand()%1500,qrand()%800,nodeWidth2,nodeHeight2);
    }

}

